package com.rhaggarty.gaming.cardroom;

import java.util.Collections;

/**
 * An extremely simple, java.util.Random backed implementation of {@link Shuffler}.
 * 
 * @author Ryan Haggarty (ryanmh@gmail.com)
 */
public final class SimpleRandomShuffler implements Shuffler {

    private static final int MAX_ITERATIONS = 11;
    
    public void shuffle(final Shoe cards) {
        for (int i = 0; i <= MAX_ITERATIONS; i++) {
            Collections.shuffle(cards.getCards());
        }
    }
}
